package club.xyes.zkh.ecommerce.dao.mapper;

import club.xyes.zkh.ecommerce.commons.entity.Shop;
import club.xyes.zkh.ecommerce.dao.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Create by 郭文梁 2019/4/16 0016 18:06
 * ShopMapper
 * Shop相关数据库访问组件
 *
 * @author 郭文梁
 * @data 2019/4/16 0016
 */
@Repository
public interface ShopMapper extends BaseMapper<Shop> {
    /**
     * 根据openID查找出商铺 并将其的OpenId设置为空
     *
     * @param openId openId
     * @return 影响的行数
     */
    int cleanOpenId(@Param("openId") String openId);
}
